vpmu intel: Dump vpmu infos in 'q' keyhandler
authorDietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Mon, 8 Apr 2013 15:58:16 +0000 (17:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Apr 2013 15:58:16 +0000 (17:58 +0200)
commit2b0fca9d8354e330e47f7d7bd7a34eda431fb370
treef48c36ceb4c89df91fbd69b6c7e0953b269eedba
parent0d2c79a9fae13993760b0c21473d7c7700759714
vpmu intel: Dump vpmu infos in 'q' keyhandler

This patch extends the printout of the VPCU infos of the keyhandler 'q'.
If vPMU is enabled is on the VCPU and active lines are printed like
(when running HVM openSuSE-12.3 with 'perf top');

(XEN)     vPMU running
(XEN)       general_0: 0x000000ffffff3ae1 ctrl: 0x000000000053003c
(XEN)       fixed_1:   0x000000ff90799188 ctrl: 0xb

This means general counter 0 and fixed counter 1 are running with showing
their contents and the contents of their configuration msr.

Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jun Nakajima <jun.nakajima@intel.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c
xen/include/asm-x86/hvm/vpmu.h